package com.future.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.future.allUtils.enums.QuestionType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Question {
    @TableId(type = IdType.INPUT)
    @ApiModelProperty("问题id")
    private Long id;
    @ApiModelProperty("问卷id")
    private Long questionnaireId;
    @ApiModelProperty("问题内容")
    private String content;
    @ApiModelProperty("排序")
    private Integer sortOrder;
    @ApiModelProperty("创建时间")
    @TableField("created_at")
    private LocalDateTime createTime;
    @ApiModelProperty("问题类型")
    private QuestionType questionType;


}
